package com.lingjtx.iot.network.mapper.influx;

import com.alibaba.fastjson2.JSONObject;
import com.lingjtx.common.influx.annotation.InfluxMapper;
import com.lingjtx.common.influx.annotation.InfluxQuery;
import com.lingjtx.common.influx.annotation.Param;
import com.lingjtx.common.influx.common.QueryType;

import java.util.List;

@InfluxMapper
public interface DeviceIotMapper {

    @InfluxQuery(type = QueryType.FLUX)
    List<JSONObject> selectLatestData(@Param("deviceId") String deviceId);
}
